package cn.sowz.mvc.controller;

import cn.sowz.log.annotation.Log;
import cn.sowz.log.annotation.OperType;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RestController;

@RestController
public class HelloController {
    @GetMapping("/hello")
    public String hello(){
        return "ok-aspect,屌毛";
    }

    @Log(title = "员工查询",type = OperType.QUERY)
    @GetMapping("/emps/detail")
    public String detail(){
        return "ok-aspect-detail,屌毛";
    }

    @Log(title = "员工添加",type = OperType.INSERT)
    @GetMapping("/emps/save")
    public String save(){
        return "ok-aspect-save,屌毛";
    }
}


